Integrand size = 32, antiderivative size = 173 \[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=-\frac {i (c-i d)^{3/2} \text {arctanh}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{2 \sqrt {2} a^{3/2} f}+\frac {(i c+d) \sqrt {c+d \tan (e+f x)}}{2 a f \sqrt {a+i a \tan (e+f x)}}+\frac {i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}} \]
[Out]
Time = 0.40 (sec) , antiderivative size = 173, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.094, Rules used = {3627, 3625, 214} \[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=-\frac {i (c-i d)^{3/2} \text {arctanh}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{2 \sqrt {2} a^{3/2} f}+\frac {i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac {(d+i c) \sqrt {c+d \tan (e+f x)}}{2 a f \sqrt {a+i a \tan (e+f x)}} \]
[In]
[Out]
Rule 214
Rule 3625
Rule 3627
Rubi steps \begin{align*} \text {integral}& = \frac {i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac {(c-i d) \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+i a \tan (e+f x)}} \, dx}{2 a} \\ & = \frac {(i c+d) \sqrt {c+d \tan (e+f x)}}{2 a f \sqrt {a+i a \tan (e+f x)}}+\frac {i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac {(c-i d)^2 \int \frac {\sqrt {a+i a \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}} \, dx}{4 a^2} \\ & = \frac {(i c+d) \sqrt {c+d \tan (e+f x)}}{2 a f \sqrt {a+i a \tan (e+f x)}}+\frac {i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}-\frac {\left (i (c-i d)^2\right ) \text {Subst}\left (\int \frac {1}{a c-i a d-2 a^2 x^2} \, dx,x,\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+i a \tan (e+f x)}}\right )}{2 f} \\ & = -\frac {i (c-i d)^{3/2} \text {arctanh}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{2 \sqrt {2} a^{3/2} f}+\frac {(i c+d) \sqrt {c+d \tan (e+f x)}}{2 a f \sqrt {a+i a \tan (e+f x)}}+\frac {i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}} \\ \end{align*}
Time = 3.65 (sec) , antiderivative size = 235, normalized size of antiderivative = 1.36 \[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=-\frac {i \left (4 a d (-i+\tan (e+f x)) (c+d \tan (e+f x))^{3/2}-4 a (c+d \tan (e+f x))^{5/2}-3 i \sqrt {-a (c-i d)} (c+i d) (-i+\tan (e+f x)) \left (\sqrt {2} (c-i d) \arctan \left (\frac {\sqrt {-a (c-i d)} \sqrt {a+i a \tan (e+f x)}}{\sqrt {2} a \sqrt {c+d \tan (e+f x)}}\right ) \sqrt {a+i a \tan (e+f x)}-2 \sqrt {-a (c-i d)} \sqrt {c+d \tan (e+f x)}\right )\right )}{12 a (c+i d) f (a+i a \tan (e+f x))^{3/2}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1274 vs. \(2 (135 ) = 270\).
Time = 1.14 (sec) , antiderivative size = 1275, normalized size of antiderivative = 7.37
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1275\) |
default | \(\text {Expression too large to display}\) | \(1275\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 488 vs. \(2 (129) = 258\).
Time = 0.26 (sec) , antiderivative size = 488, normalized size of antiderivative = 2.82 \[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=-\frac {{\left (3 \, \sqrt {\frac {1}{2}} a^{2} f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (3 i \, f x + 3 i \, e\right )} \log \left (\frac {2 \, \sqrt {\frac {1}{2}} a^{2} f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (i \, f x + i \, e\right )} + \sqrt {2} {\left ({\left (i \, c + d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, c + d\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{i \, c + d}\right ) - 3 \, \sqrt {\frac {1}{2}} a^{2} f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (3 i \, f x + 3 i \, e\right )} \log \left (-\frac {2 \, \sqrt {\frac {1}{2}} a^{2} f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (i \, f x + i \, e\right )} - \sqrt {2} {\left ({\left (i \, c + d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, c + d\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{i \, c + d}\right ) + \sqrt {2} {\left (4 \, {\left (-i \, c - d\right )} e^{\left (4 i \, f x + 4 i \, e\right )} - {\left (5 i \, c + 3 \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} - i \, c + d\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-3 i \, f x - 3 i \, e\right )}}{12 \, a^{2} f} \]
[In]
[Out]
\[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=\int \frac {\left (c + d \tan {\left (e + f x \right )}\right )^{\frac {3}{2}}}{\left (i a \left (\tan {\left (e + f x \right )} - i\right )\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
Exception generated. \[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx=\int \frac {{\left (c+d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}}{{\left (a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^{3/2}} \,d x \]
[In]
[Out]